package com.yh.decorator;


import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class Client {
    public static void main(String[] args) throws FileNotFoundException {
        //创建被装饰的类
        Human human = new Man();

        //创建装饰的类，并添加被装饰类的引用
        Human superMan = new ManDecotor(human);

        //执行增强后的run方法
        superMan.run();


        BufferedReader br =new BufferedReader(new FileReader(new File("")));
    }

}